interface A{
    void test();
}
public class demo4 {
    public static void main(String[] args) {
       final int a = 2 ;
        new A(){
            @Override
            public void test(){
                System.out.println(a);
            }
        };
    }

}
